{layout name="layout/layout" /}
<div class="layui-tab layui-tab-brief" lay-filter="docDemoTabBrief">
    <ul class="layui-tab-title">
        <li class="layui-this">banner列表</li>
    </ul>
</div>
<div class="layui-form">
    <table class="layui-table">
        <colgroup>
            <col width="30%">
            <col width="20%">
            <col width="50%">
        </colgroup>
        <thead>
            <tr style="background-color: #f5f5f5;font-size: 17px">
                <td>封面图</td>
                <td>标题</td>
                <td>操作</td>
            </tr>
        </thead>
        <tbody>
            {foreach name="items" item="item"}
            <tr>
                <td class="feedback_img">
                    {empty name="item.src"} &nbsp; {else /}
                    <img src="{$item['src']}" width="100" /> {/empty}
                </td>
                <td>{$item.title}&nbsp;</td>
                <td>
                    <a class="layui-btn layui-btn-xs" href="{:Url('Slide/edit',['id'=>$item['id']])}">编辑</a>
                </td>
            </tr>
            {/foreach}
        </tbody>
    </table>
</div>
<script>
    PostbirdImgGlass.init({
        domSelector: ".feedback_img img",
        animation: true
    });
</script>